﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OL.FrameCore.Application.SysLog.Dto
{
    public class GetUserLoginLogListResponse
    {
        public int Id { get; set; }
        public string UserName { get; set; }
        public int UserId { get; set; }
        public string IP { get; set; }
        public string UserAgent { get; set; }
        public DateTime LoginTime { get; set; }
        //public string LoginTimeText { get { return LoginTime.ToString("yyyy-MM-dd HH:mm:ss"); } }
        public int LoginStatus { get; set; }
        public string LoginStatusText
        {
            get
            {
                switch (LoginStatus)
                {
                    case 1:
                        return "成功";
                    case 2:
                        return "失败";
                }
                return "未知";
            }
        }
    }
}
